/*
 * gui_lua.h
 */

#ifndef GUI_LUA_H_
#define GUI_LUA_H_

#include <lua.h>
#include <lauxlib.h>

/*
 * Returns true iff the Lua state for the GUI is initialized.
 */
int lua_gui_is_initialized();

/*
 * Initializes the Lua GUI state and registers all of the function hooks.
 * Also runs "init" for the default gui.lua script.
 */
int lua_gui_initialize();

/*
 * Closes the Lua GUI state.
 */
void lua_gui_close();

/*
 * Calls the function "display" in the Lua GUI script. "display" should be a
 * function in the Lua GUI script that draws the user interface.
 */
int lua_gui_run();

#endif
